<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/common/common.jsp"%>
<%@ page import="com.chanyachting.emall.util.RequestUtil"%>
<%@ page import="com.chanyachting.emall.util.CodeMap"%>
<%@ page import="com.chanyachting.emall.domain.*"%>
<%@ page import="com.chanyachting.emall.service.*"%>
<%@ page import="com.chanyachting.emall.serviceImpl.*"%>
<%@ page import="java.util.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>
</head>

<body>
<div class="tab_box">
	<div class="tab_menu">
    	<a href="applicationLeter_create.jsp">发布人才库</a>
        <a href="applicationLeter_list.jsp" class="current">管理人才库</a>
    </div>
    <div class="tab_submenu">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%">
          <div class="mu_state">
          <a href="applicationLeter_list.jsp">人才展示中</a>｜
          <a href="applicationLeter_list_nopublish.jsp">待上架</a>
          </div></td>
          <td align="right">&nbsp;</td>
        </tr>
      </table>
    </div>
</div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="yes_border">
  <tr>
    <th height="36" colspan="6" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" height="36" align="center"><label></label>
              <input type="submit" name="button" id="button" value=" 上 架 " />
              <input type="submit" name="button" id="button2" value=" 删 除 " /></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">&nbsp;</td>
      </tr>
    </table></th>
  </tr>
  <tr>
    <td colspan="6" align="center" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"><label>
          <input type="checkbox" name="checkbox" id="checkbox" />
          </label>
          全选本页人才信息</td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">本页显示 10条人才信息</td>
      </tr>
    </table></td>
  </tr>
 
  
  <%
  	RequestUtil ru=new RequestUtil(request);
  
  	Member member=(Member)ru.getSessionObject(MemberService.MEMBER_IN_SESSION,new Member());
  	
  	ApplicationLeterService alService=new ApplicationLeterServiceImpl();
  
  	List list=new ArrayList();
  	
  	//获得指定会员已发布的求职信息
  	list=alService.getReleasedApplicationleter(member);

  
  %>
  
  
    <tr>
	    <th width="15%" align="center">编号</th>
	    <th align="center">职位</th>
	    <th width="10%" align="center"><p>展示剩余天数</p></th>
	    <th width="15%" align="center">上一次刷新时间</th>
	    <th width="15%" align="center">发布日期</th>
	    <th width="15%" align="center">操作</th>
	  </tr>
  
  
  <%
  		if(list!=null && list.size()>0){
  			
  			Applicationleter al=null;
  			
  			for(int i=0;i<list.size();i++){
  				
  				al=(Applicationleter)list.get(i);
  %>
    <tr>
	    <td align="center"><input type="checkbox" name="checkbox" id="checkbox2" /><%=al.getId() %></td>
	    <td><%=CodeMap.jobType.get(al.getWantPost()).toString() %></td>
	    <td align="center">30</td>
	    <td align="center"><%=al.getRefreshDate()==null?"": al.getRefreshDate()%></td>
	    <td align="center"><%=al.getCreateDate() %></td>
	    <td align="center">
	    	<a href="<%=root %>/memberBackend/appleterRefresh.do?id=<%=al.getId() %>">刷新</a>　
	    	<a href="#">预览</a>　
	    	<a href="<%=root %>/memberBackend/appleterDelRelease.do?id=<%=al.getId() %>">下架</a>
	    </td>
	  </tr>
  <%				
  			}
  			
  		}
  
  %>
  

  
  
  
  
  <tr>
    <td colspan="6" bgcolor="#E7E7E7"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" align="center"><label>
          <input type="checkbox" name="checkbox" id="checkbox" />
          </label>
          全选本页人才信息</td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">本页显示 10条人才信息</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="no_border">
      <tr>
        <td width="15%" height="36" align="center"><label></label>
              <input type="submit" name="button" id="button7" value=" 上 架 " />
              <input type="submit" name="button" id="button8" value=" 删 除 " /></td>
        <td align="center">&nbsp;</td>
        <td width="15%" align="center">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>

